/**
 * 
 */
package com.onstar.cn.map.common;

/**
 * @author Qiying Gong
 *
 * @Created 2013-4-27
 */
public class MapException {

	/**
	 * the thread id that executed to perform some actions.
	 */
	private long id;
	private String errorString;
	private ExceptionType type;
	private Exception exp;
	
	public MapException(long id, String errors,Exception exp){
		this.id = id;
		this.errorString = errors;
		this.exp = exp;
		this.type = ExceptionType.MAP_ERR;
	}
	
	public MapException(long id, String errors,Exception exp, ExceptionType type){
		this.id = id;
		this.errorString = errors;
		this.exp = exp;
		this.type = type;
	}

	/**
	 * @return the errorString
	 */
	public String getErrorString() {
		return errorString;
	}

	/**
	 * @return the exception
	 */
	public Exception getExp() {
		return exp;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @return the type of exception
	 */
	public ExceptionType getType() {
		return type;
	}

	
}
